package com.atguigu.java;

/**
 * ClassName: HeapDemo
 * Description:
 * Date: 2021/2/21 19:33
 * Company: TravelSky
 *
 * @author YangXin
 */
public class HeapDemo {
    public static void main(String[] args) {

        //可以设置堆空间大小。   -Xms10m -Xmx10m
        // -XX:+PrintGCDetails 打印垃圾回收信息
        System.out.println("start....");
        try {
            Thread.sleep(10000);
            System.out.println("休眠结束....");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }
}
